import { createI18n } from 'vue-i18n';
import en from '../locales/en';
import zh from '../locales/zh';
import de from '../locales/de';
import fr from '../locales/fr';
import it from '../locales/it';
import ja from '../locales/ja';
import { get } from '../utils/local';

const i18n = createI18n({
  legacy: false,
  locale: get('locale'),
  fallbackLocale: 'en',
  messages: {
    en,
    zh,
    de,
    fr,
    it,
    ja
  }
});

export default i18n; 